package com.canopys.study.open.test.designpatterns.observer;

import lombok.AllArgsConstructor;

/**
 * @Author: Canopys
 * @Descrption:
 * @Date: Created in 21:41 2019/11/7
 * @Modified By:
 */
@AllArgsConstructor
public class ConcreteObserver implements Observer {

    private String name;

    @Override
    public void update(String state) {
        System.out.println(this.name + " state update " + state);
    }
}
